package com.fuchuang.seckillsystem.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ExcelTarget("user")
public class User implements Serializable {
    
    //用户id
    @Excel(name = "id")
    private Integer id;
    
    //用户名称
    @Excel(name = "用户名称")
    private String username;
    
    //用户真实姓名
    @Excel(name = "真实姓名")
    private String realName;
    
    //身份证码
    private String idcard;
    
    //用户密码
    private String password;
    
    //手机号
    @Excel(name = "联系方式")
    private String phone;
    
    //年龄
    @Excel(name = "年龄")
    private Integer age;
    
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "创建时间", exportFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    
    //更改时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "更改时间", exportFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    
}